home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Enciclopedia Del Perro
/
Enciclopedia Del Perro.iso
/
win
/
tfw115c1
/
tfw.5
/
SCRNWIP.SLT
< prev
next >
Wrap
Text File
|
1996-04-15
|
2KB
|
45 lines
/****************************************************************/
/* */
/* Demo of how to clear the screen in a novel way. */
/* */
/* Copyright 1995 deltaComm Development, Inc. */
/* */
/****************************************************************/
main()
{
int width, height;
int i;
if (argcount<= 0) // if the script wasn't told the screen dim.
{
width=gettermwidth();
height=gettermheight();
}
else
{
// get width & height from parameters -- not currently supported in SALT.
}
flushbuf(); // remove extraneous chars from comm buffers
cursor_onoff(0); // turn the cursor off
for (i=0; i < (height/2); ++i)
{ // Draw boxes to fill the screen w/ blanks
box(i, i, width-1-i, height-1-i, 2, 1, random(6)+1);
update_term();
delay_scr(1); // A short delay to help the effect
}
for (i=(height-1)/2; i>=0; --i)
{ // scroll the boxes off the screen
scroll(0, 0, width-1, i, 1, 0);
scroll(0, height-1-i, width-1, height-1, -1, 0);
delay(1);
}
clear_scr(); // Clear screen completely, just in case..
cursor_onoff(1); // Show cursor
}